#include "../../../mac/mac.h"
#include "../../../mac/mac_nhl.h"
#include "../../../mac/mac_scan.h"
#include <stdlib.h>
#include <string.h>

static mac_scan_cfm_t scan_cfm;
static int8 energy_list[NUM_OF_CHNLS_SUP];
static int8 chnls_list[NUM_OF_CHNLS_SUP];

int8 mac_scan_cfm(mac_scan_cfm_t *cfm)
{
    if (cfm->scan_type == mac_active_scan_type) {

    } else {
        memcpy(energy_list, cfm->energy_detect_list, cfm->result_list_size);    
        scan_cfm.result_list_size = cfm->result_list_size;
        scan_cfm.energy_detect_list = energy_list;
        scan_cfm.status = cfm->status;
        scan_cfm.scan_chnls = cfm->scan_chnls;
        memcpy(chnls_list, cfm->scan_chnls.chnls, cfm->scan_chnls.num);
        scan_cfm.scan_chnls.chnls = chnls_list;
    }
}

mac_scan_cfm_t *mac_nhl_get_scan_cfm()
{
    return &scan_cfm;
}

int8 mac_assoc_cfm(mac_assoc_cfm_t *cfm)
{

}

int8 mac_assoc_indict(mac_assoc_indict_t *indict)
{

}

int8 mac_comm_status_indict(mac_comm_status_indict_t *indict)
{

}

int8 mac_data_indict(buf_t *buf, mac_data_indict_t *indict)
{

}

int8 mac_data_cfm(mac_data_cfm_t *cfm)
{

}

int8 mac_poll_cfm(mac_poll_cfm_t *cfm)
{

}

int8 mac_bcn_ntf(mac_bcn_ntf_t *ntf)
{

}


